package com.haier.iot.cloud.controller;

import com.haier.iot.cloud.AccountClient;
import com.haier.iot.cloud.OrderClient;
import com.haier.iot.cloud.StorageClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Zhang Tianhui 2021/10/14
 * @version 1.0.0
 */
@RestController
public class AccountController {

    @Autowired
    private OrderClient orderClient;

    @GetMapping("/cloud/account")
    public String getAccount() {
        return String.format("account: Tom, order: %s", orderClient.getOrder());
    }
}
